package com.web.mqtt.mapper;

import com.web.common.iot.mqtt.entity.MqttAcl;
import com.web.common.iot.mqtt.entity.MqttAclEntity;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * <p>
 * mqtt授权 Mapper 接口
 * </p>
 *
 * @author zhouhui
 * @since 2024-04-25
 */
@Mapper
public interface MqttAclMapper extends BaseMapper<MqttAcl> {

	/**
	 * 获取MQTT中ACL的列表
	 * @param page 分页信息
	 * @param condition 查询条件
	 * @return IPage<MqttAclEntity> acl列表
	 *
	 * @author zhouhui
	 * @since 2024.04.25 
	 */
	IPage<MqttAclEntity> getMqttAclList(Page<MqttAcl> page, @Param("condition") MqttAclEntity condition);
}
